﻿<metro:Window x:Class="D3StatsClient.View.ProcessPickerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:metro="http://schemas.codeplex.com/elysium"
        xmlns:params="http://schemas.codeplex.com/elysium/params"
        Title="Process Picker" Height="300" Width="300">
    <StackPanel>
        <ListView Height="225" 
                  ItemsSource="{Binding Processes}"
                  SelectedItem="{Binding SelectedItem}"
                  SelectionMode="Single">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="ID" DisplayMemberBinding="{Binding Id}" Width="auto" />
                    <GridViewColumn Header="Name" DisplayMemberBinding="{Binding ProcessName}" Width="auto" />
                </GridView>
            </ListView.View>
        </ListView>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Margin="0,5,8,15" Content="Cancel" Width="75" Click="Button_Click_2" />
            <Button IsDefault="True" Margin="0,5,10,15" Content="Ok" Width="75" Click="Button_Click_1" IsEnabled="{Binding IsItemSelected}" />
        </StackPanel>
    </StackPanel>
</metro:Window>
